package com.tbvtc.agriculturalcreditchainserver2025.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 测试order表
 * </p>
 *
 * @author syh
 * @since 2025-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("test")

public class Test implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @TableField("phone")
    private String phone;


    @TableField("good_id")
    private Integer goodId;


    @TableField("num")
    private Integer num;


    @TableField("address")
    private String address;


    @TableField(condition = "create_time", fill = FieldFill.INSERT )
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("username")
    private String username;


    @TableField("user_id")
    private Integer userId;

    @TableField("state")
    private Integer state;

    @TableField("order_id")
    private String orderId;

    @TableField("express_id")
    private String expressId;

    @TableField("express_company")
    private String expressCompany;


}
